<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>
<head>
    <base href="<%=basePath%>">
    <title>Title</title>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <link rel="stylesheet" type="text/css" href="css/maintable.css" ></link>
</head>
<body>
<table class="main_table" >
    <tr>
        <th>角色名称</th> 	<th>角色描述</th>	<th>操作</th>
    </tr>
    <c:forEach var="r" items="${roleList}">
        <tr>
            <td>${r.roleName }</td> 	<td>${r.des }</td>
            <td><a href="/RoleServlet?flag=updateroleinfo&id=${r.id}&rolename=${r.roleName }&des=${r.des }">修改</a>
                <a href="/RoleServlet?flag=delete&id=${r.id}" onclick="return confirm('确认删除吗')">删除</a>
                <a href="RoleServlet?flag=roleMenuList&roleId=${r.id}">角色授权</a></td>
        </tr>
    </c:forEach>
</table>
</body>
</html>
